<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class CorrectionLetter extends AppModel {

    var $name = "CorrectionLetter";
    var $actsAs = array('Logable' => array(
            'userModel' => 'User',
            'userKey' => 'user_id',
            'change' => 'full', // options are 'list' or 'full'
            'description_ids' => TRUE // options are TRUE or FALSE
            ));
    var $hasMany = array(
        'ProyectRequirement' => array(
            'model' => 'ProyectRequirement',
            'dependent' => true
        ),
        'CandidateRequirement' => array(
            'model' => 'CandidateRequirement',
            'dependent' => true,
        ),
        'PropertyRequirement' => array(
            'model' => 'PropertyRequirement',
            'dependent' => true,
        ),
        'TitleStudy' => array(
            'model' => 'TitleStudy',
            'dependent' => true,
        )
    );
    var $validate = array(
        'fecha_envio' => array(
            'notEmpty' => array(
                'rule' => 'notEmpty',
                'message' => 'Este campo no puede estar en blanco',
            ),
        ),
        'nro_radicado_salida' => array(
            'notEmpty' => array(
                'rule' => 'notEmpty',
                'message' => 'Este campo no puede estar en blanco',
            ),
        ),
    );

}

?>
